package org.kimoji.common;

public class Page {
	private int pageNum = 1;//页码
	private int numPerPage = 25;//每页大小
	// 开始检索的地方
	private int indexNo;
	// 总的页数
	private int pageCount;

	public int getIndexNo() {
		this.indexNo = (this.pageNum - 1) * this.numPerPage;
		return indexNo;
	}

	public int getPageCount() {
		return pageCount;
	}

	public void setPageCount(int pageCount) {
		this.pageCount = pageCount;
	}


	public int getPageNum() {
		return pageNum;
	}

	public void setPageNum(int pageNum) {
		this.pageNum = pageNum;
	}

	public int getNumPerPage() {
		return numPerPage;
	}

	public void setNumPerPage(int numPerPage) {
		this.numPerPage = numPerPage;
	}

}
